package com.test.ws.s1.service.imp;

import com.test.ws.s1.bean.Route;
import com.test.ws.s1.mapper.RouteDao;
import com.test.ws.s1.service.RouteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class RouteServiceImp implements RouteService {
    @Autowired
    private RouteDao routeDao;

    @Override
   public ArrayList<Route> selectRoute(Route route) {
        return routeDao.selectRoute(route);
    }

    @Override
    public int insertRoute(Route route) {
        return routeDao.insertRoute(route);
    }

    @Override
    public int deleteRouteWei(Route route) {
        return routeDao.deleteRouteWei(route);
    }

    @Override
    public Route selectRouteOne(Route route) {
        return routeDao.selectRouteOne(route);
    }

    @Override
    public int updateRoute(Route route) {
        return routeDao.updateRoute(route);
    }

    @Override
    public ArrayList<Route> selectRouteLunBo() {
        return routeDao.selectRouteLunBo();
    }

    @Override
    public int updateRouteLunBo(Route route) {
        return routeDao.updateRouteLunBo(route);
    }

    @Override
    public int updateRouteLunBoWei(Route route) {
        return routeDao.updateRouteLunBoWei(route);
    }

    @Override
    public ArrayList<Route> selectRouteChaZiRan(int id) {
        return null;
    }

    @Override
    public ArrayList<Route> selectRouteChaZhuTi(int id) {
        return null;
    }

    @Override
    public ArrayList<Route> selectRouteChaMenShi(int id) {
        return null;
    }
}
